package y_2025.m03.d21.t01;

// 圆形
public class Circle {
    private double radius;

    public Circle(double radius) {
        this.radius = radius;
    }

    // 求面积
    public double getArea() {
        return Math.PI * radius * radius;
    }

    // 求周长
    public double getCircumference() {
        return 2 * Math.PI * radius;
    }
}